/*

 Designer: DaBai 
 E-mail: jamesbaicn@gmail.com
 Last Modified: #2010-01-19:18:54#
 License: GNU GENERAL PUBLIC LICENSE Version 3

 Devices:
 1.	STC12C5A60S2 with 24MHz crystal as the core microcontroller unit
 2.	L297N as the control signal of the step motors
 3. ULN2003A as the drive of motors
 4. MAX232 as the serial communication device.
 5. Step motors with 4 wires control motor

 Output Port of MCU:
 P1.1 as the direction control of Motor 0
 P1.2 as the direction control of Motor 1
 P1.3 as the PWM0 channel for Motor 0;
 P1.4 as the PWM1 channel for Motor 1;

*/

#include "include/includes.h"

void main(void){
	unsigned int i;
	InitPWM();
	SetPWM(1,250,1,250);
	for(i=0;i>60000;i++);
	SetPWM(0,250,1,250);
	for(i=0;i>60000;i++);
	SetPWM(1,250,0,250);
	for(i=0;i>60000;i++);
	SetPWM(0,250,0,250);
    while(1);
}